package com.nlgc365.designpattern.Chapter04_Pattern.Behavior.P01_Observer.SynchronousObserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ConcreteObserverB implements IObserver {
    private static final Logger logger = LoggerFactory.getLogger(ConcreteObserverB.class);

    /**
     * 作用: 被观察者调用观察者的接口方法
     *
     * @param message 调用时传递的参数
     */
    @Override
    public void update(Message message) {
        logger.info(message.toString());
    }
}
